﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmMaterial.aspx.cs" Inherits="SISLOG.Web.frmMaterial" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    Ingresar Crierio de Busqueda:
    
    <asp:TextBox ID="txtCriterio" runat="server" Width="156px"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="botonBuscar" runat="server" Text="Buscar" />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSourceMaterial">
        <Columns>
            <asp:BoundField DataField="idMaterial" HeaderText="idMaterial" 
                SortExpression="idMaterial" />
            <asp:BoundField DataField="descripcion" HeaderText="descripcion" 
                SortExpression="descripcion" />
            <asp:BoundField DataField="Proveedor" HeaderText="Proveedor" 
                SortExpression="Proveedor" />
            <asp:BoundField DataField="fechaIngreso" HeaderText="fechaIngreso" 
                SortExpression="fechaIngreso" />
            <asp:BoundField DataField="stockInicial" HeaderText="stockInicial" 
                SortExpression="stockInicial" />
            <asp:BoundField DataField="stockFinal" HeaderText="stockFinal" 
                SortExpression="stockFinal" />
            <asp:BoundField DataField="puntoReorden" HeaderText="puntoReorden" 
                SortExpression="puntoReorden" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSourceMaterial" runat="server" 
        onobjectcreating="ObjectDataSourceMaterial_ObjectCreating" 
        SelectMethod="GetAllFromMaterialByCriterio" 
        TypeName="SISLOG.BusinessLogic.MaterialBL" 
        onselecting="ObjectDataSourceMaterial_Selecting">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtCriterio" DefaultValue="%" Name="criterio" 
                PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
